import java.util.ArrayList;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: Lenovo
 * Date: 2025-04-20
 * Time: 15:02
 */
public class Main {
    public static void main(String[] args) {
        MyArrayList myArrayList = new MyArrayList();
        myArrayList.add(1);
        myArrayList.add(2);
        myArrayList.add(3);

        myArrayList.display();

        System.out.println(myArrayList.contains(3));//true

        System.out.println(myArrayList.get(1));//2

        myArrayList.set(1,99);

        myArrayList.display();

        ArrayList<Integer> list = new ArrayList<>();
        list.add(0);
        list.add(1);
        list.add(2);
        list.add(3);

    }
}
